package edu.proyecto.poo;

import java.util.UUID;

public class Empleado {
    
    private String codigo ;
    private String login     ;
    private String password  ;
    private String nombre    ;
    private String apellido  ;
    private String email     ;
    private int status    ;
 
    public Empleado(){
        this.codigo=UUID.randomUUID().toString();
    }
    
    public String getIdempleado() {
        return codigo;
    }
  
    public String getLogin() {
        return login;
    }
 
    public void setLogin(String login) {
        this.login = login;
    }
 
    public String getPassword() {
        return password;
    }
 
    public void setPassword(String password) {
        this.password = password;
    }
 
    public String getNombre() {
        return nombre;
    }
 
    public void setNombre(String nombre) {
        this.nombre = nombre;
    }
 
    public String getApellido() {
        return apellido;
    }
 
    public void setApellido(String apellido) {
        this.apellido = apellido;
    }
 
    public String getEmail() {
        return email;
    }
 
    public void setEmail(String email) {
        this.email = email;
    }
 
    public int getStatus() {
        return status;
    }
 
    public void setStatus(int status) {
        this.status = status;
    }

    public boolean login(String login,String password){ 
        if( this.login.equals(login)==true  && this.password.equals(password)==true )
            return true;
        else
            return false;
    }
    
}
